package com.jt.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class RedisController {
    @Value("${redis.host}")
    private String host; //="127.0.0.1";
    @Value("${redis.port}")
    private int port;// =6379;
    @RequestMapping("/getNode")
    public String getNode(){
        return host+"|"+port;
    }
}
